import axios from '@/core/utils/AxiosRequest'
/**
 * 系统演示
 */
const prefix = '/api/auth'
export default {
  getNavMenus() {
    return axios.get(prefix + '/getNavMenus')
  },
  doLogout() {
    let payload = {id: 10009, name: 'admin'}
    return axios.get(prefix + '/logout', { params: payload } )
  },
  doLogin(payload) {
    return axios.post(prefix + '/login', payload)
  }
}